const DOMAIN = 'https://vote.ehangnet.com/api/app/';

module.exports = {
  DOMAIN:{
    DOMAIN:DOMAIN
  },
  ACCOUNT:{
    JSREQUIRE:DOMAIN+'weixin/MpJsRequire',
    SAVE:DOMAIN+"weixin/saveMpUser"
  },
  USER:{
    SAVEHEADIMG:DOMAIN+'user/saveHeadImg',
    CHANGEPWD:DOMAIN+'user/modifyPwd',
    FINPWD:DOMAIN+'user/findPwd',
    CHANGEMOBILE:DOMAIN+'user/changeMobile',
    LOGIN:DOMAIN+'user/appLogin',
    FINDCODE:DOMAIN+'user/findMobileCode',
    REGISTER:DOMAIN+'user/appRegister',
    USERINFO:DOMAIN+'user/findUserInfo'
  },
  VOTE: {
    MYVOTELIST:DOMAIN+'vote/findVoteUserAssetByPage',  //参与的投票列表
    FINDVOTELIST:DOMAIN+'vote/findVoteByPage', //分页获取投票列表
    HASHDETAIL: DOMAIN+'vote/findVoteUserOptionByHash',//根据交易哈希获取交易详情
    VOTEDETAIL: DOMAIN+'vote/findVoteDetail',//获取投票详
    FINDOPTIONPAGE:DOMAIN+'vote/findVoteUserOptionByPage'
  },
  VOTENEWS:{
    FINDVOTELIST:DOMAIN+'voteNews/findVoteNewsByPage',//分页获取公告列表
    FINDVOTENEWSDETAIL:DOMAIN+'voteNews/findVoteNewsDetail',//获取公告详情
  },
  VOTEOPTION: {
    VOTE: DOMAIN+'vote/saveUserOption',//进行投票
    OPTION: DOMAIN+'vote/saveVoteOption',//领取代币
  },
  APPLY: {
    CHECK: DOMAIN+'vote/checkUserApply',
    APPLY: DOMAIN+'vote/saveVoteUserOption',//新增投票选项
    APPLYLIST: DOMAIN+'vote/findVoteUserApplyByPage',//获取我的申请列表
  },
  SYS: {
    UPLOAD: "https://vote.ehangnet.com/api/base/sys/appUploadFile",//app端上传文件
    DICTIONARY: "https://vote.ehangnet.com/api/sys/loadDictionary",//根据类型获取字典
  },
  ECHAIN: {
    ECHAIN: "https://vote.ehangnet.com/api/echain/findBlockInfo"
  }
}
